package com.homedo.microservice.open.service.gateway.manager.web.gateway.bean.po;

import com.homedo.common.dao.bean.po.base.BasePo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 路由服务配置表
 *
 * @author 作者 jgshun
 * @date 创建时间 2018年09月18日 11时34分40秒
 */
@Table(name = "d_route_service")
public class RouteService extends BasePo {
    /**
     * 属性查询列表
     */
    public static final String FIELD_ID = "id";
    public static final String FIELD_APPLICATIONNAME = "applicationName";
    public static final String FIELD_STATUS = "status";
    public static final String FIELD_COMMENT = "comment";
    public static final String FIELD_CREATETIME = "createTime";
    public static final String FIELD_UPDATETIME = "updateTime";
    public static final String FIELD_HEALTHURL = "healthUrl";


    /**
     * 列名查询列表
     */
    public static final String COLUMN_ID = "id";
    public static final String COLUMN_APPLICATION_NAME = "application_name";
    public static final String COLUMN_STATUS = "status";
    public static final String COLUMN_COMMENT = "comment";
    public static final String COLUMN_CREATE_TIME = "create_time";
    public static final String COLUMN_UPDATE_TIME = "update_time";
    public static final String COLUMN_HEALTH_URL = "health_url";


    @Id


    @Column(name = "id")
    private String id;


    @Column(name = "application_name")
    private String applicationName;


    @Column(name = "status")
    private Integer status;


    @Column(name = "comment")
    private String comment;

    @Column(name = "health_url")
    private String healthUrl;

    @Column(name = "create_time")
    private Date createTime;


    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 获取 服务ID
     *
     * @return id - 服务ID
     */
    public String getId() {
        return id;
    }

    /**
     * 设置 服务ID
     *
     * @param id - 服务ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取 应用名称
     *
     * @return applicationName - 应用名称
     */
    public String getApplicationName() {
        return applicationName;
    }

    /**
     * 设置 应用名称
     *
     * @param applicationName - 应用名称
     */
    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    /**
     * 获取 是否可用
     *
     * @return status - 是否可用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置 是否可用
     *
     * @param status - 是否可用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取 备注
     *
     * @return comment - 备注
     */
    public String getComment() {
        return comment;
    }

    /**
     * 设置 备注
     *
     * @param comment - 备注
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    /**
     * 获取 创建时间
     *
     * @return createTime - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置 创建时间
     *
     * @param createTime - 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getHealthUrl() {
        return healthUrl;
    }

    public void setHealthUrl(String healthUrl) {
        this.healthUrl = healthUrl;
    }

    /**
     * 获取 更新时间
     *
     * @return updateTime - 更新时间
     */

    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置 更新时间
     *
     * @param updateTime - 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}